package mesweb.mesweb.service.impl.device;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.entity.device.MesDevice;
import mesweb.mesweb.mapper.MesDeviceMapper;
import mesweb.mesweb.service.device.IMesDeviceService;
import mesweb.mesweb.vo.MesDeviceVo;
import mesweb.mesweb.vo.device.ProcedureDeviceParameterVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */
@Service
public class MesDeviceServiceImpl extends ServiceImpl<MesDeviceMapper, MesDevice> implements IMesDeviceService {

    @Autowired(required = false)
    private MesDeviceMapper mesDeviceMapper;
    @Override
    public IPage<MesDeviceVo> getDevices(Page page, QueryWrapper queryWrapper) {
        return mesDeviceMapper.getDevices(page,queryWrapper);
    }

    @Override
    public IPage<ProcedureDeviceParameterVo> getProcedureDeviceCapility(Page page, QueryWrapper queryWrapper) {
        return mesDeviceMapper.getProcedureDeviceCapility(page,queryWrapper);
    }

    @Override
    public List<ProcedureDeviceParameterVo> getProcedureDeviceCapility(QueryWrapper queryWrapper) {
        return mesDeviceMapper.getProcedureDeviceCapility(queryWrapper);
    }
}
